<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>青年公寓系统 - 后勤人员信息管理</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/list.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/lib/bp.css">
<style type="text/css">
a:hover {
	cursor: pointer;
}

.breadcrumb, .breadcrumb li {
	font-size: 20px;
	line-height: 50px;
}

.breadcrumb {
	padding: 28px 15px;
}

.form-control {
	display: inline-block;
	width: 270px;
	margin-right: 10px;
}

.btn-primary {
	line-height: auto;
}

.table tr {
	height: 45px;
}

.table>tbody>tr>td {
	vertical-align: middle;
}
</style>
</head>
<body style="margin: 25px 0;">
<div
	style="line-height: 50px; background: #f5f5f5; position: relative;">
	<ol class="breadcrumb">
		<li>服务管理</li>
		<li>后勤人员</li>
	</ol>
	<div class="searchMes">
		<form action="${pageContext.request.contextPath}/searchLogistics" method="post" class="forms">
			<input type="hidden" value="1" name="index">
			<input  class="form-control" placeholder="姓名查询" name="name"/>
			<input type="submit" value="搜索" class="btn btn-primary" />
		</form>
	</div>
	<!-- ${pageContext.request.contextPath}/house/add -->
	<a class="btn btn-primary add_button" href="${pageContext.request.contextPath}/toaddLogistics">添加</a>
</div>
<div style="">
	<!-- background-color: #f5f5f5 -->
	<table class="table table-striped table-hover table-bordered">
		<thead>
			<tr style="background: #E5E5E5">
				<th>人员序号</th>
				<th>人员姓名</th>
				<th>身份证号</th>
				<th>手机号码</th>
				<th>性别</th>
				<th>部门岗位</th>
				<th>入职时间</th>
				<th>工资</th>
				<th>籍贯</th>
				<th style="width: 200px;">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${logisticsSearch}" var="logistics">
				<tr>
					<td>${logistics.lo_id}</td>
					<td>${logistics.lo_name}</td>
					<td>${logistics.lo_id_card}</td>
					<td>${logistics.lo_phone}</td>
					<td>${logistics.lo_sex}</td>
					<td>${logistics.lo_post}</td>
					<td><f:formatDate value="${logistics.lo_crete_time}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td>${logistics.lo_sal}</td>
					<td>${logistics.lo_native_place}</td>
					<td>
						<a href="${pageContext.request.contextPath}/getLogisticsId?id=${logistics.lo_id}" style="padding: 0 10px;">编辑</a>
						<a href="${pageContext.request.contextPath}/deleteLogistics?id=${logistics.lo_id}" onclick="confirmDelete(1)">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<script>
function confirmDelete(id){
	if (confirm("确定要删除码？")) {
		alert('确认要删除该房间的数据？删除后将无法恢复！');
	}
	return false;
}
</script>
</body>
</html>